﻿using System;
using Kwan.Data.Mappings;
namespace ZP.Data
{
    [Table("ZP_User u LEFT OUTER JOIN ZP_Role r ON u.RoleID = r.EntityID"+
        " LEFT OUTER JOIN ZP_Company c ON u.companyID = c.EntityID")]
    public interface IVUser:ITUser
    {
        [ID("u.EntityID")]
        [UID]
        string EntityID { get; set; }


        [Column("u.Answer")]
        string Answer { get; set; }
        [Column("u.CompanyID")]
        int CompanyID { get; set; }
        [Column("u.Email")]
        string Email { get; set; }
        [Column("u.LoginCount")]
        int LoginCount { get; set; }
        [Column("u.LoginTime")]
        DateTime LoginTime { get; set; }
        [Column("u.Logo")]
        string Logo { get; set; }
        [Column("u.Password")]
        string Password { get; set; }
        [Column("u.Question")]
        string Question { get; set; }
        [Column("u.ResumeID")]
        string ResumeID { get; set; }
        [Column("u.RoleID")]
        string RoleID { get; set; }
        [Column("u.Scale")]
        string Scale { get; set; }
        [Column("u.UserName")]
        string UserName { get; set; }

        [Column("c.CompanyName")]
        string CompanyName { get; set; }
        [Column("r.NameCN")]
        string NameCN { get; set; }
        [Column("r.NameEN")]
        string NameEN { get; set; }
        [Column("r.Memo")]
        string Memo { get; set; }
    }
}